package com.ambow.shop.domain;

/**
 * 产品。
 * 
 * @author chunw
 *
 */
public class Product {
	// 标识；
	private int id;
	// 名称；
	private String name;
	// 描述；
	private String description;
	// 价格；
	private double price;
	// 图片；
	private String image;
	// 类别；
	private ProductCategory category;

	public Product() {
		super();
	}

	public Product(int id, String name, String description, double price, String image, ProductCategory category) {
		super();
		this.id = id;
		this.name = name;
		this.description = description;
		this.price = price;
		this.image = image;
		this.category = category;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public ProductCategory getCategory() {
		return category;
	}

	public void setCategory(ProductCategory category) {
		this.category = category;
	}

	@Override
	public String toString() {
		return "Product [id=" + id + ", name=" + name + ", description=" + description + ", price=" + price + ", image="
				+ image + ", category=" + category + "]";
	}

}